package com.enba.mallapi.enums;

import com.enba.boot.core.enums.ICode;

/** 菜单类型枚举 */
public enum MenuTypeEnum implements ICode {
  DIR(0, "目录"),
  MENU(1, "菜单"),
  BUTTON(2, "按钮"),
  ;

  private final Integer code;
  private final String msg;

  MenuTypeEnum(Integer code, String msg) {
    this.code = code;
    this.msg = msg;
  }

  @Override
  public Integer getCode() {
    return code;
  }

  @Override
  public String getMsg() {
    return msg;
  }
}
